package com.ruoyi.business.mapper;

import java.util.List;
import com.ruoyi.business.domain.WmsDeliveryRecordDetail;
import org.apache.ibatis.annotations.Param;

/**
 * 出库单货物信息Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-13
 */
public interface WmsDeliveryRecordDetailMapper
{
    /**
     * 查询出库单货物信息
     *
     * @param id 出库单货物信息主键
     * @return 出库单货物信息
     */
    public WmsDeliveryRecordDetail selectWmsDeliveryRecordDetailById(Long id);

    public WmsDeliveryRecordDetail selectWmsDeliveryRecordDetail(WmsDeliveryRecordDetail wmsDeliveryRecordDetail);

    /**
     * 查询出库单货物信息列表
     *
     * @param wmsDeliveryRecordDetail 出库单货物信息
     * @return 出库单货物信息集合
     */
    public List<WmsDeliveryRecordDetail> selectWmsDeliveryRecordDetailList(WmsDeliveryRecordDetail wmsDeliveryRecordDetail);

    /**
     * 新增出库单货物信息
     *
     * @param wmsDeliveryRecordDetail 出库单货物信息
     * @return 结果
     */
    public int insertWmsDeliveryRecordDetail(WmsDeliveryRecordDetail wmsDeliveryRecordDetail);

    /**
     * 修改出库单货物信息
     *
     * @param wmsDeliveryRecordDetail 出库单货物信息
     * @return 结果
     */
    public int updateWmsDeliveryRecordDetail(WmsDeliveryRecordDetail wmsDeliveryRecordDetail);

    /**
     * 删除出库单货物信息
     *
     * @param id 出库单货物信息主键
     * @return 结果
     */
    public int deleteWmsDeliveryRecordDetailById(Long id);

    /**
     * 批量删除出库单货物信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsDeliveryRecordDetailByIds(Long[] ids);

    int deleteWmsDeliveryRecordDetailByLotAndCargo(@Param("lotNo") String lotNo, @Param("cargoSn") String cargoSn, @Param("deliveryNo") String deliveryNo);
}
